/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package numberporting.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import numberporting.bean.Customer;
import numberporting.bean.PortingRequest;
import numberporting.bean.PortingResult;

/**
 *
 * @author Thomas
 */
@WebService
public interface INumberPortingService {
    
    @WebMethod(operationName="check_porting_possible")
    public boolean check_porting_possible(@WebParam(name="theCustomer") Customer theCustomer, @WebParam(name="ProviderID")int ProviderID) throws InvalidCustomerException;
    
    @WebMethod(operationName="schedule_batch_porting")
    public void schedule_batch_porting(@WebParam(name="PortingRequests") PortingRequest[] PortingRequests) throws InvalidCustomerException;
    
    @WebMethod(operationName="check_porting_status")
    public boolean check_porting_status(@WebParam(name="theCustomer") Customer theCustomer) throws InvalidCustomerException;
    
    @WebMethod(operationName="get_porting_result")
    public PortingResult get_porting_result(@WebParam(name="theCustomer") Customer theCustomer) throws NotFinishedException, InvalidCustomerException;
    

}
